package com.tchy.cloud.entity;

import javax.persistence.*;

import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "g_scheduler", schema = "", catalog = "")
public class GSchedulerEntity {
    private Long schedulerId;
    private String taskCh;
    private String taskEn;
    private int taskType;
    private String detailGroup;
    private long triggerId;
    private Date createTime;
    private byte isValid;
    private byte deleted;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "scheduler_id")
    public Long getSchedulerId() {
        return schedulerId;
    }

    public void setSchedulerId(Long schedulerId) {
        this.schedulerId = schedulerId;
    }

    @Basic
    @Column(name = "task_ch")
    public String getTaskCh() {
        return taskCh;
    }

    public void setTaskCh(String taskCh) {
        this.taskCh = taskCh;
    }

    @Basic
    @Column(name = "task_en")
    public String getTaskEn() {
        return taskEn;
    }

    public void setTaskEn(String taskEn) {
        this.taskEn = taskEn;
    }

    @Basic
    @Column(name = "task_type")
    public int getTaskType() {
        return taskType;
    }

    public void setTaskType(int taskType) {
        this.taskType = taskType;
    }

    @Basic
    @Column(name = "detail_group")
    public String getDetailGroup() {
        return detailGroup;
    }

    public void setDetailGroup(String detailGroup) {
        this.detailGroup = detailGroup;
    }

    @Basic
    @Column(name = "trigger_id")
    public long getTriggerId() {
        return triggerId;
    }

    public void setTriggerId(long triggerId) {
        this.triggerId = triggerId;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "is_valid")
    public byte getIsValid() {
        return isValid;
    }

    public void setIsValid(byte isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "deleted")
    public byte getDeleted() {
        return deleted;
    }

    public void setDeleted(byte deleted) {
        this.deleted = deleted;
    }

}
